<?php /* Create Rol Controller */
	require_once('modules/roles/actions/create/scripts/validate-rol.php');
	if (isset($_POST['form-action'])) { //se envio formulario
		$validacion = validarRol();
		if (!empty($validacion)) { //fallo validacion
			$validacion = 'ERROR: '.implode(',', $validacion);
			require_once('modules/roles/actions/create/view/create-rol.php');
		} else { //si valido correcto
			$rol->create();
			require_once('modules/roles/actions/list/index.php');
		}
	} else { //pre-carga
		require_once('modules/roles/actions/create/view/create-rol.php');
	}
?>